// pages/我参与的/我参与的.js
Page({
  data: {
    list: [],
    label_selected: 0
  },

  onLoad(){
    const that = this
    const app = getApp()
    wx.request({
      url: app.globalData.root_url + 'get_attended_projects/?user_id=' + app.globalData.user_id,
      method: 'GET',
      success(res) {
        that.setData({
          list: res.data
        })
      }
    })
  },

  // 页面顶部标签切换
  志愿者招募(){
    this.setData({
      label_selected: 0
    })
  },
  学术支持(){
    this.setData({
      label_selected: 1
    })
  },
  其他(){
    this.setData({
      label_selected: 2
    })
  }
})